/**
 * Created by asus on 2017/10/9.
 */
public class TestNums {
    public static void main(String[] args) {
        Nums[] nums = new Nums[9];
        nums[0] = new Nums(8);
        nums[1] = new Nums(3);
        nums[2] = new Nums(12);
        nums[3] = new Nums(54);
        nums[4] = new Nums(34);
        nums[5] = new Nums(84);
        nums[6] = new Nums(91);
        nums[7] = new Nums(110);
        nums[8] = new Nums(2321);
        Sorting.quickSort(nums,0,8);
        Nums testnum1 = new Nums(45);
        Nums testnum2 = new Nums(54);
        Nums found = (Nums)Searching.linearSearch(nums,testnum1);
        Nums found1 = (Nums)Searching.linearSearch(nums,testnum2);
        Nums found2 = (Nums)Searching.binarySearch(nums,testnum1);
        Nums found3 = (Nums)Searching.binarySearch(nums,testnum2);

    }
}
